package com.beerandjesus.sportofkings.handicapper.profile;

import com.beerandjesus.sportofkings.handicapper.model.CramerClassDropJockeySwitchProfile;

import static com.beerandjesus.sportofkings.handicapper.profile.AnalysisProfile.*;
import static com.beerandjesus.sportofkings.handicapper.profile.AnalysisProfile.Type.*;

/**
 * Date: Jun 8, 2012
 * Time: 1:48:38 PM
 */
public class AnalysisProfileBuilder {

    public static AnalysisProfile analysisProfile(Type type, int score) {
        switch (type) {
            case CRAMER_DROP_IN_CLASS_POSS_JOCKEY_SWITCH:
            case CRAMER_DROP_IN_CLASS_WITH_JOCKEY_SWITCH:
                return new CramerClassDropJockeySwitchProfile(type, score);
            default:
                return new AnalysisProfileImpl(type, score);
        }
    }

    public static CramerClassDropJockeySwitchProfile cramerClassDropJockeySwitchProfile() {
        Type type = CRAMER_DROP_IN_CLASS_WITH_JOCKEY_SWITCH;
        return new CramerClassDropJockeySwitchProfile(type, 0);
    }

}
